.class public Lcom/example/m6wmr/ZtActivity;
.super Landroid/app/Activity;
.source "ZtActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled",
        "HandlerLeak"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/ZtActivity$Waimairenjsobj;
    }
.end annotation


# static fields
.field private static final GO_SHOP:I = 0x63

.field public static shopshow:Lcom/example/m6wmr/ZtActivity;


# instance fields
.field private WebLink:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private id:Ljava/lang/String;

.field m:Lmyapp/MyApp;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopstr:Ljava/lang/String;

.field private zhuantiname:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 33
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 34
    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->m:Lmyapp/MyApp;

    .line 37
    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->h:Landroid/os/Handler;

    .line 39
    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 40
    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->pd:Landroid/app/ProgressDialog;

    .line 41
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->id:Ljava/lang/String;

    .line 42
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->zhuantiname:Ljava/lang/String;

    .line 43
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->shopstr:Ljava/lang/String;

    .line 44
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->pingstr:Ljava/lang/String;

    .line 45
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ZtActivity;->WebLink:Ljava/lang/String;

    .line 33
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/ZtActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 36
    iget-object v0, p0, Lcom/example/m6wmr/ZtActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/ZtActivity;)Landroid/webkit/WebView;
    .locals 1

    .prologue
    .line 38
    iget-object v0, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/ZtActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 43
    iget-object v0, p0, Lcom/example/m6wmr/ZtActivity;->shopstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/ZtActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 44
    iget-object v0, p0, Lcom/example/m6wmr/ZtActivity;->pingstr:Ljava/lang/String;

    return-object v0
.end method


# virtual methods
.method public loadUrl(Ljava/lang/String;)V
    .locals 3
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 272
    iget-object v0, p0, Lcom/example/m6wmr/ZtActivity;->mcontext:Landroid/content/Context;

    const-string v1, "\u52a0\u8f7d\u6570\u636e"

    const-string v2, "\u6b63\u5728\u52a0\u8f7d\u6570\u636e..."

    invoke-static {v0, v1, v2}, Lmyapp/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 273
    iget-object v0, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    .line 275
    iget-object v0, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 276
    iget-object v0, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->reload()V

    .line 279
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 49
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 50
    const v6, 0x7f030031

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ZtActivity;->setContentView(I)V

    .line 52
    invoke-virtual {p0}, Lcom/example/m6wmr/ZtActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    check-cast v6, Lmyapp/MyApp;

    iput-object v6, p0, Lcom/example/m6wmr/ZtActivity;->m:Lmyapp/MyApp;

    .line 54
    const/high16 v6, 0x7f0c0000

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ZtActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 55
    .local v4, "top":Landroid/widget/LinearLayout;
    iget-object v6, p0, Lcom/example/m6wmr/ZtActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 56
    const v6, 0x7f070026

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 58
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/ZtActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 59
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 60
    iput-object p0, p0, Lcom/example/m6wmr/ZtActivity;->mcontext:Landroid/content/Context;

    .line 61
    sput-object p0, Lcom/example/m6wmr/ZtActivity;->shopshow:Lcom/example/m6wmr/ZtActivity;

    .line 63
    invoke-virtual {p0}, Lcom/example/m6wmr/ZtActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 64
    .local v2, "intent":Landroid/content/Intent;
    const-string v6, "id"

    invoke-virtual {v2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/ZtActivity;->id:Ljava/lang/String;

    .line 65
    const-string v6, "name"

    invoke-virtual {v2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/ZtActivity;->zhuantiname:Ljava/lang/String;

    .line 66
    new-instance v6, Lcom/example/m6wmr/ZtActivity$1;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/ZtActivity$1;-><init>(Lcom/example/m6wmr/ZtActivity;)V

    iput-object v6, p0, Lcom/example/m6wmr/ZtActivity;->h:Landroid/os/Handler;

    .line 135
    const v6, 0x7f0c0001

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ZtActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 136
    .local v1, "closebtn":Landroid/widget/ImageView;
    new-instance v6, Lcom/example/m6wmr/ZtActivity$2;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/ZtActivity$2;-><init>(Lcom/example/m6wmr/ZtActivity;)V

    invoke-virtual {v1, v6}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 141
    const v6, 0x7f0c0009

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ZtActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 142
    .local v3, "titlename":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/ZtActivity;->zhuantiname:Ljava/lang/String;

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 144
    new-instance v6, Ljava/lang/StringBuilder;

    iget-object v7, p0, Lcom/example/m6wmr/ZtActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "/index.php?ctrl=app&action=specialpage&id="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/example/m6wmr/ZtActivity;->id:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "&lat="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/example/m6wmr/ZtActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getLat()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "&lng="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    .line 145
    iget-object v7, p0, Lcom/example/m6wmr/ZtActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getLng()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "&mapname="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/example/m6wmr/ZtActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getMapname()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 144
    iput-object v6, p0, Lcom/example/m6wmr/ZtActivity;->WebLink:Ljava/lang/String;

    .line 146
    const-string v6, "WebLink--------------------"

    iget-object v7, p0, Lcom/example/m6wmr/ZtActivity;->WebLink:Ljava/lang/String;

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 147
    const v6, 0x7f0c001c

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ZtActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/webkit/WebView;

    iput-object v6, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    .line 148
    iget-object v6, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v6}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v5

    .line 149
    .local v5, "webSettings":Landroid/webkit/WebSettings;
    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 151
    iget-object v6, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v7, Lcom/example/m6wmr/ZtActivity$Waimairenjsobj;

    const/4 v8, 0x0

    invoke-direct {v7, p0, v8}, Lcom/example/m6wmr/ZtActivity$Waimairenjsobj;-><init>(Lcom/example/m6wmr/ZtActivity;Lcom/example/m6wmr/ZtActivity$Waimairenjsobj;)V

    const-string v8, "waimai"

    invoke-virtual {v6, v7, v8}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 152
    iget-object v6, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v6, :cond_1

    .line 154
    iget-object v6, p0, Lcom/example/m6wmr/ZtActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v7, Lcom/example/m6wmr/ZtActivity$3;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/ZtActivity$3;-><init>(Lcom/example/m6wmr/ZtActivity;)V

    invoke-virtual {v6, v7}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 166
    :cond_1
    iget-object v6, p0, Lcom/example/m6wmr/ZtActivity;->WebLink:Ljava/lang/String;

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ZtActivity;->loadUrl(Ljava/lang/String;)V

    .line 174
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 291
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 292
    invoke-virtual {p0}, Lcom/example/m6wmr/ZtActivity;->finish()V

    .line 296
    :cond_0
    return v1
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 285
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 286
    return-void
.end method
